<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        .chat_room{
            position: relative;
            border: 1px solid #000000;
            border-radius: 4px;
            width: 800px;

            margin: 0 auto;
        }
        .chat_item{
            position: relative;
        }



    </style>
</head>
<body>
<div>
    这是聊天室
</div>
<div class="chats">
    <div class="chat_room">
        <div class="chat_item chat_friend">
            <div class="avatar">
                <img src="friend.jpg2">
            </div>
            <div class="content friend_content">
                <p>
                    every one
                </p>
            </div>
        </div>
        <div class="chat_item chat_friend">
            <div class="avatar">
                <img src="friend.jpg2">
            </div>
            <div class="content friend_content">
                <p>
                    hello
                </p>
                <p>
                    every one
                </p>
            </div>
        </div>
        <div class="chat_item chat_myself">
            <div class="avatar">
                <img src="myself.jpg2">
            </div>
            <div class="content  myself_content">
                <p>
                    你好
                </p>
                <p>
                    hello
                </p>
            </div>
        </div>
    </div>
</div>
</body>
</html>